<?php
/*************************************************************************************
   Copyright notice
   
   (c) 2002-2007 Oliver Georgi (oliver@phpwcms.de) // All rights reserved.
 
   This script is part of PHPWCMS. The PHPWCMS web content management system is
   free software; you can redistribute it and/or modify it under the terms of
   the GNU General Public License as published by the Free Software Foundation;
   either version 2 of the License, or (at your option) any later version.
  
   The GNU General Public License can be found at http://www.gnu.org/copyleft/gpl.html
   A copy is found in the textfile GPL.txt and important notices to the license 
   from the author is found in LICENSE.txt distributed with these scripts.
  
   This script is distributed in the hope that it will be useful, but WITHOUT ANY 
   WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
   PARTICULAR PURPOSE.  See the GNU General Public License for more details.
 
   This copyright notice MUST APPEAR in all copies of the script!
*************************************************************************************

   Google Maps Module by breitsch (mail@casa-loca.com)

*************************************************************************************/

// ----------------------------------------------------------------
// obligate check for phpwcms constants
if (!defined('PHPWCMS_ROOT')) {
   die("You Cannot Access This Script Directly, Have a Nice Day.");
}
// ----------------------------------------------------------------

// Googlemap module content part form fields

// it's typically implemented in a 2 column table
// -> a spacer table row
//	<tr><td colspan="2"><img src="img/lines/l538_70.gif" alt="" width="538" height="1" /></td></tr>

// -> this can be used as spaceholfer
//	<tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="6" /></td></tr>

// -> this is the tyical way to format rows with label and input 
//	<tr>
//		<td align="right" class="chatlist">Field label</td>
//		<td><input type="text" value="" /></td>
//	</tr>

// current module vars are stored in $phpwcms['modules'][$content["module"]]
// var to modules path: $phpwcms['modules'][$content["module"]]['path']

// before you can use module content part vars check if value is valid and what you are expect
// when defining modules vars it is always recommend to name t "modulename_varname".

//define('PATH_IMG_BACKEND', 'include/inc_module/mod_googlemaps/img/');
define('PATH_IMG_BACKEND', $phpwcms['modules'][$content["module"]]['dir'].'img/');

//presettings for all vars
if(empty($content['googlemaps']['calink'])) {
	$content['googlemaps']['calink'] = array();
}
if(empty($content['googlemaps']['gmaps_info_window'])) {
	$content['googlemaps']['gmaps_info_window'] = '';
}
if(empty($content['googlemaps']['gmaps_info_width'])) {
	$content['googlemaps']['gmaps_info_width'] = '220'; //infowindow width
}
if(empty($content['googlemaps']['gmaps_map_width'])) {
	$content['googlemaps']['gmaps_map_width'] = '300';
}
if(empty($content['googlemaps']['gmaps_map_height'])) {
	$content['googlemaps']['gmaps_map_height'] = '300';
}
if(empty($content['googlemaps']['gmaps_planner_active'])) {
	$content['googlemaps']['gmaps_planner_active'] = 0;
}
if(empty($content['googlemaps']['gmaps_planner_to'])) {
	$content['googlemaps']['gmaps_planner_to'] = 0;
}
if(empty($content['googlemaps']['gmaps_marker'])) {
	$content['googlemaps']['gmaps_marker'] = 0;
}
if(empty($content['googlemaps']['gmaps_popup_init'])) {
	$content['googlemaps']['gmaps_popup_init'] = 0;
}
if(empty($content['googlemaps']['gmaps_popup_type'])) {
	$content['googlemaps']['gmaps_popup_type'] = 0;
}
if(empty($content['googlemaps']['gmaps_popup_control'])) {
	$content['googlemaps']['gmaps_popup_control'] = 0;
}
if(empty($content['googlemaps']['gmaps_zoom_dbl'])) {
	$content['googlemaps']['gmaps_zoom_dbl'] = 0;
}
if(empty($content['googlemaps']['gmaps_zoom_scroll'])) {
	$content['googlemaps']['gmaps_zoom_scroll'] = 0;
}
if(empty($content['googlemaps']['gmaps_zoom_effect'])) {
	$content['googlemaps']['gmaps_zoom_effect'] = 0;
}
if(empty($content['googlemaps']['gmaps_zoomdbl'])) {
	$content['googlemaps']['gmaps_zoomdbl'] = 0;
}
if(empty($content['googlemaps']['gmaps_initzoom'])) {
	$content['googlemaps']['gmaps_initzoom'] = '14';
}
if(empty($content['googlemaps']['cimage_pos'])) {
	$content['googlemaps']['cimage_pos'] = 0;
}
if(empty($content['googlemaps']['gmaps_script'])) {
	$content['googlemaps']['gmaps_script'] = '';
}
if(empty($content['googlemaps']['gmaps_type_map'])) {
	$content['googlemaps']['gmaps_type_map'] = 0;
}
if(empty($content['googlemaps']['gmaps_type_sat'])) {
	$content['googlemaps']['gmaps_type_sat'] = 0;
}
if(empty($content['googlemaps']['gmaps_type_hyb'])) {
	$content['googlemaps']['gmaps_type_hyb'] = 0;
}
if(empty($content['googlemaps']['gmaps_type_phy'])) {
	$content['googlemaps']['gmaps_type_phy'] = 0;
}
if(empty($content['googlemaps']['gmaps_control_bar'])) {
	$content['googlemaps']['gmaps_control_bar'] = 0;
}
if(empty($content['googlemaps']['gmaps_control_scale'])) {
	$content['googlemaps']['gmaps_control_scale'] = 0;
}
if(empty($content['googlemaps']['gmaps_control_overview'])) {
	$content['googlemaps']['gmaps_control_overview'] = 0;
}
if(empty($content['googlemaps']['gmaps_showcat'])) {
	$content['googlemaps']['gmaps_showcat'] = 0;
}
if(empty($content['googlemaps']['cat_pos'])) {
	$content['googlemaps']['cat_pos'] = 0;
}
if(empty($content['googlemaps']['gmaps_cat_initon'])) {
	$content['googlemaps']['gmaps_cat_initon'] = '';
}
if(empty($content['googlemaps']['gmaps_bar_keepzoom'])) {
	$content['googlemaps']['gmaps_bar_keepzoom'] = 0;
}
if(empty($content['googlemaps']['gmaps_bar_showload'])) {
	$content['googlemaps']['gmaps_bar_showload'] = 0;
}
if(empty($content['googlemaps']['gmaps_bar_resultlist'])) {
	$content['googlemaps']['gmaps_bar_resultlist'] = 0;
}
if(empty($content['googlemaps']['gmaps_overview_width'])) {
	$content['googlemaps']['gmaps_overview_width'] = '';
}
if(empty($content['googlemaps']['gmaps_overview_height'])) {
	$content['googlemaps']['gmaps_overview_height'] = '';
}
if(empty($content['googlemaps']['gmaps_listord'])) {
	$content['googlemaps']['gmaps_listord'] = 1;
}
if(empty($content['googlemaps']['gmaps_tabs_width'])) {
	$content['googlemaps']['gmaps_tabs_width'] = '300';
}
if(empty($content['googlemaps']['gmaps_cat_title'])) {
	$content['googlemaps']['gmaps_cat_title'] = '';
}
if(empty($content['googlemaps']['gmaps_cat_txt'])) {
	$content['googlemaps']['gmaps_cat_txt'] = '';
}
if(empty($content['googlemaps']['gmaps_planner_title'])) {
	$content['googlemaps']['gmaps_planner_title'] = '';
}
if(empty($content['googlemaps']['gmaps_planner_txt'])) {
	$content['googlemaps']['gmaps_planner_txt'] = '';
}
if(empty($content['googlemaps']['gmaps_type_3dm'])) {
	$content['googlemaps']['gmaps_type_3dm'] = 0;
}
if(empty($content['googlemaps']['gmaps_showsearch'])) {
	$content['googlemaps']['gmaps_showsearch'] = 0;
}
if(empty($content['googlemaps']['gmaps_search_title'])) {
	$content['googlemaps']['gmaps_search_title'] = '';
}
if(empty($content['googlemaps']['gmaps_search_txt'])) {
	$content['googlemaps']['gmaps_search_txt'] = '';
}
if(empty($content['googlemaps']['gmaps_search_rad'])) {
	$content['googlemaps']['gmaps_search_rad'] = 0;
}
if(empty($content['googlemaps']['gmaps_search_radval'])) {
	$content['googlemaps']['gmaps_search_radval'] = '';
} else {
$contentradval	= @unserialize($content['googlemaps']['gmaps_search_radval']);
$content['googlemaps']['gmaps_search_radval']			= implode(LF, $contentradval);
}
if(empty($content['googlemaps']['gmaps_search_cont'])) {
	$content['googlemaps']['gmaps_search_cont'] = 0;
}
if(empty($content['googlemaps']['gmaps_search_adr'])) {
	$content['googlemaps']['gmaps_search_adr'] = 0;
}
if(empty($content['googlemaps']['gmaps_control_pano'])) {
	$content['googlemaps']['gmaps_control_pano'] = 0;
}
if(empty($content['googlemaps']['gmaps_control_pano_anz'])) {
	$content['googlemaps']['gmaps_control_pano_anz'] = 20;
}
if(empty($content['googlemaps']['gmaps_control_pano_uid'])) {
	$content['googlemaps']['gmaps_control_pano_uid'] = '';
}
if(empty($content['googlemaps']['gmaps_control_pano_act'])) {
	$content['googlemaps']['gmaps_control_pano_act'] = 0;
}
if(empty($content['googlemaps']['gmaps_tabs_height'])) {
	$content['googlemaps']['gmaps_tabs_height'] = '300';
}
if(empty($content['googlemaps']['gmaps_searchInTit'])) {
	$content['googlemaps']['gmaps_searchInTit'] = 0;
}
if(empty($content['googlemaps']['gmaps_searchInInfo'])) {
	$content['googlemaps']['gmaps_searchInInfo'] = 0;
}
if(empty($content['googlemaps']['gmaps_searchInSrch'])) {
	$content['googlemaps']['gmaps_searchInSrch'] = 0;
}
if(empty($content['googlemaps']['gmaps_planner_extern'])) {
	$content['googlemaps']['gmaps_planner_extern'] = 0;
}
if(empty($content['googlemaps']['gmaps_kml_descr'])) {
	$content['googlemaps']['gmaps_kml_descr'] = '';
}
if(empty($content['googlemaps']['gmaps_search_hideem'])) {
	$content['googlemaps']['gmaps_search_hideem'] = 0;
}

//header additions
$BE['BODY_CLOSE'][] = '<script language="javascript" type="text/javascript">document.getElementById("target_ctype").disabled = true;</script>';
$BE['HEADER'][] = '<link href="'.$phpwcms['modules'][$content["module"]]['dir'].'template/js/googlemap.css" rel="stylesheet" type="text/css">';
$BE['HEADER'][] = '<!--[if IE]><style type="text/css">.radio_img {display:inline;width:0px;}</style><![endif]-->';
$BE['HEADER'][] = '<script type="text/Javascript">
<!--
function createXMLHttpRequest() {

var ua;

if(window.XMLHttpRequest) {
    try {
      ua = new XMLHttpRequest();
    } catch(e) {
      ua = false;
    }
  } else if(window.ActiveXObject) {
    try {
      ua = new ActiveXObject("Microsoft.XMLHTTP");
    } catch(e) {
      ua = false;
    }
  }
  return ua;
}

var req = createXMLHttpRequest();

function sendRequest() {
  id_o = document.getElementById("calink");
  var id = "";
  var len = id_o.options.length;
    for(var i = (len-1); i >= 0; i--) {
      if ((id_o.options[i].selected == true)) {
        id = id + id_o.options[i].value + "|" ;
      }
    }
  req.open("get", "include/inc_module/mod_googlemaps/inc/func.php?s="+ id);
  req.onreadystatechange = handleResponse;
  req.send(null);
}

function handleResponse() {
var obj_sel = document.getElementById("cacats");
  if(req.readyState == 4){
    var id_val = document.getElementById("cacats").value;
    document.getElementById("inhalt").innerHTML = req.responseText;
    var len = document.getElementById("cacats").options.length;
      for(var i = (len-1); i >= 0; i--) {
        if (document.getElementById("cacats").options[i].value == id_val) {
          document.getElementById("cacats").selectedIndex = i;
          if (document.getElementById("cacats").options[i].style.fontStyle == "italic") {
            document.getElementById("hidcat").innerHTML = "italic";
          } else {
            document.getElementById("hidcat").innerHTML = "";
          }
        }
        
      }
  }
}

function sendRequestOrd(sortby) {
  id_o = document.getElementById("calink");//.value;
  var id = "";
  var len = id_o.options.length;
    for(var i = (len-1); i >= 0; i--) {
      if ((id_o.options[i].selected == true)) {
        id = id + id_o.options[i].value + "|" ;
      }
    }
  req.open("get", "include/inc_module/mod_googlemaps/inc/func.cats.php?s="+ sortby +"&ar="+ id +"&anz="+ len);
  req.onreadystatechange = handleResponseOrd;
  req.send(null);
}
function handleResponseOrd() {
  if(req.readyState == 4){
    document.getElementById("points").innerHTML = req.responseText;
  }
}
function checkhidden() {
var i = document.getElementById("cacats").selectedIndex;
  if (document.getElementById("cacats").options[i].style.fontStyle == "italic") {
    document.getElementById("hidcat").innerHTML = "'.$BL['modules'][$content['module']]['hidden_cat'].'";
  } else {
    document.getElementById("hidcat").innerHTML = "";
  }
}
//-->
</script>
';
?>
<!-- top spacer - seperate from title/subtitle section -->
<tr><td colspan="2" class="rowspacer0x7"><img src="img/leer.gif" alt="" width="1" height="1" /></td></tr>
<!-- start selection fields -->
<tr>
  <td align="right" valign="top" class="chatlist" style="padding-top:3px;"><?php echo $BL['be_selection'] ?>:&nbsp;<br /><div style="padding:5px;"><?php echo $BL['modules'][$content["module"]]['gmaps_ctrl'] ?></div></td>
  <td style="padding-bottom:3px;"><table border="0" cellpadding="0" cellspacing="0" summary="">
	<tr>
		<td><div style="width:400px;"><div style="float:left;width:300px;" id="points">
<?php
// set default values for paginating
     //get all entries
     $catgry_listing= array();
     
    $sql  = "SELECT * FROM ".DB_PREPEND."phpwcms_googlemaps_categories  WHERE cat_type='module_googlemaps'";
		$catgry = _dbQuery($sql);
      foreach($catgry as $row) {
         $catgry_listing[$row['cat_id']]['cat_id']   = $row['cat_id'];
        $catgry_listing[$row['cat_id']]['name']   = $row['cat_name'];
        $catgry_listing[$row['cat_id']]['status']   = $row['cat_status'];
     }

    //get all entries
    $sql  = "SELECT googlemaps_id, googlemaps_title, googlemaps_cat, googlemaps_status ";
		$sql .= "FROM ".DB_PREPEND."phpwcms_googlemaps ";
		$sql .= "WHERE googlemaps_status = 1 ";
		if ($content['googlemaps']['gmaps_listord'] == 2) {
    $sql .= "ORDER BY CASE WHEN googlemaps_cat = '' THEN 1 ELSE 0 END, googlemaps_cat, googlemaps_title;";
    }else{
    $sql .= "ORDER BY googlemaps_title;";
    }
    
    $tmp_cat_array = array();
		$carticle_list = '';

		if($result = mysql_query($sql, $db) or die("error while reading complete googlemaps list")) {
			$k  = 0;
			$row2 = array();
		  while($row = mysql_fetch_row($result)) {
        $str_cats ="";
        $row2sngl = "";
        if ($row[2]) $row2sngl = explode(",", $row[2]);
          if ($row2sngl) {
            foreach ($row2sngl as $value) {
              if ($catgry_listing[$value]['cat_id']) {
                if (in_array($row[0], $content['googlemaps']['calink'])) {
                  array_push($tmp_cat_array, $value);
                }
                $str_cats .= $catgry_listing[$value]['name']. "+";
              }
            }
          }
      ($row[2]) ? $row[2] = trim($str_cats, "+"): $row[2] ="";
      array_push($row2, $row);
			}
		  foreach($row2 as $value) {
        $carticle_list  .= '	<option value="'.$value[0].'"';
        if (in_array($value[0], $content['googlemaps']['calink'])) {
          $carticle_list  .= ' selected="selected"';
        }
 
				$carticle_list .= '>'.htmlspecialchars($value[1]);
        if ($value[2]) $carticle_list .= ' ('.htmlspecialchars($value[2]).')';
        $carticle_list .= '</option>'.LF;
        $k++;
			}
	  }
	  $arr_cats = array();
	  $tmp_cat_array = array_unique($tmp_cat_array);
             foreach ($tmp_cat_array as $value) {
              $arr_cats[$value] = $catgry_listing[$value]['name'];
            }   
    if($k>20) $k=20;
    
    natcasesort($arr_cats);
    $cat_list = '<select name="gmaps_cat_initon" id="cacats" class="f10" style="width: 150px;font-style:normal;" onchange="checkhidden()">'."\n";
    $cat_list  .= '<option value="0">all</option>'."\n";
    $cat_list  .= '<option value="1"';
    if ($content['googlemaps']['gmaps_cat_initon']=="1")
          $cat_list  .= ' selected="selected"';
    $cat_list  .= '>none</option>'."\n";
      foreach($arr_cats as $key => $value) {
        $cat_list  .= '<option value="'.$key.'"';
        if ($content['googlemaps']['gmaps_cat_initon']==$key)
          $cat_list  .= ' selected="selected"';
          if($catgry_listing[$key]['status'] == 0) {
				    $cat_list  .= ' style="font-style:italic;"';
			     }
				$cat_list .= '>'.$value.'</option>'."\n";
			}
    $cat_list .= '</select>';
		
?>
		<select name="calink[]" size="<?php echo $k; ?>" multiple class="f11 listrow" id="calink" style="width: 300px" onChange="sendRequest()">
    <?php echo $carticle_list; ?></select></div>
    <div style="float:left;padding:2px;">
		<a href="#cat_anchor2" onclick="document.getElementById('calink').size=document.getElementById('calink').size-2"><img src="img/button/minus_11x11.gif" border="0" alt="-" width="11" height="11"></a><a href="#cat_anchor2" onclick="document.getElementById('calink').size=document.getElementById('calink').size+2"><img src="img/button/add_11x11.gif" border="0" alt="+" width="11" height="11"></a>
		</div></div><div style="clear:both;"></div>
    <input type="hidden" name="gmaps_listord" id="gmaps_listord" value="<?php echo $content['googlemaps']['gmaps_listord']; ?>">
		<a href="#" onclick="document.getElementById('gmaps_listord').value=1;sendRequestOrd(1);" title=""><?php echo $BL['modules'][$content["module"]]['googlemaps_ordpoints']; ?></a>&nbsp;&nbsp;
		<a href="#" onclick="document.getElementById('gmaps_listord').value=2;sendRequestOrd(2);" title=""><?php echo $BL['modules'][$content["module"]]['googlemaps_ordcats']; ?></a>
    </td>
	</tr>
	</table></td>
</tr>
<!-- end selection field -->
<!-- little space -->
<tr><td colspan="2" class="rowspacer0x7"><img src="img/leer.gif" alt="" width="1" height="1" /></td></tr>
<!-- end space -->
<!-- map size and position -->
<tr>
  <td align="right" class="chatlist"><?php echo $BL['modules'][$content["module"]]['map_size'] ?>:&nbsp;</td>
  <td><?php echo $BL['modules'][$content["module"]]['width']; ?> <input type="text" name="gmaps_map_width" class="f11b width50" value="<?php echo $content['googlemaps']['gmaps_map_width']; ?>">px&nbsp;&nbsp;<?php echo $BL['modules'][$content["module"]]['height']; ?> <input type="text" name="gmaps_map_height" class="f11b width50" value="<?php echo $content['googlemaps']['gmaps_map_height']; ?>">px</td>
</tr>
<tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="5" /></td></tr>
<tr>
	<td align="right" class="chatlist"><?php echo $BL['be_cnt_position'] ?>:&nbsp;</td>
	<td valign="top"><table border="0" cellpadding="0" cellspacing="0" summary="">
		<tr>
			<td><select name="cimage_pos" class="f10" id="cimage_pos" onChange="changeImagePosMenu();">
			    <option value="0" <?php is_selected(0, $content['googlemaps']['cimage_pos']) ?>><?php echo $BL['be_cnt_pos0'] ?></option>
			    <option value="1" <?php is_selected(1, $content['googlemaps']['cimage_pos']) ?>><?php echo $BL['be_cnt_pos1'] ?></option>
			    <option value="2" <?php is_selected(2, $content['googlemaps']['cimage_pos']) ?>><?php echo $BL['be_cnt_pos2'] ?></option>
			    <option value="3" <?php is_selected(3, $content['googlemaps']['cimage_pos']) ?>><?php echo $BL['be_cnt_pos3'] ?></option>
			    <option value="4" <?php is_selected(4, $content['googlemaps']['cimage_pos']) ?>><?php echo $BL['be_cnt_pos4'] ?></option>
			    <option value="5" <?php is_selected(5, $content['googlemaps']['cimage_pos']) ?>><?php echo $BL['be_cnt_pos5'] ?></option>
			    <option value="6" <?php is_selected(6, $content['googlemaps']['cimage_pos']) ?>><?php echo $BL['be_cnt_pos6'] ?></option>
			    <option value="7" <?php is_selected(7, $content['googlemaps']['cimage_pos']) ?>><?php echo $BL['be_cnt_pos7'] ?></option>
		      </select></td>
			<td><img src="img/leer.gif" alt="" width="3" height="1"></td>
			<td><img src="img/symbole/content_selected.gif" alt="" name="imgpos0" width="7" height="10" id="imgpos0"></td>
			<td><a href="javascript:;" onclick="changeImagePos(0);this.blur();return false;" title="<?php echo $BL['be_cnt_pos0i'] ?>"><img src="img/button/image_pos0.gif" alt="" width="15" height="15" border="0"></a></td>
			<td><img src="img/leer.gif" alt="" name="imgpos1" width="7" height="10" id="imgpos1"></td>
			<td><a href="javascript:;" onclick="changeImagePos(1);this.blur();return false;" title="<?php echo $BL['be_cnt_pos1i'] ?>"><img src="img/button/image_pos1.gif" alt="" width="15" height="15" border="0"></a></td>
			<td><img src="img/leer.gif" alt="" name="imgpos2" width="7" height="10" id="imgpos2"></td>
			<td><a href="javascript:;" onclick="changeImagePos(2);this.blur();return false;" title="<?php echo $BL['be_cnt_pos2i'] ?>"><img src="img/button/image_pos2.gif" alt="" width="15" height="15" border="0"></a></td>
			<td><img src="img/leer.gif" alt="" name="imgpos3" width="7" height="10" id="imgpos3"></td>
			<td><a href="javascript:;" onclick="changeImagePos(3);this.blur();return false;" title="<?php echo $BL['be_cnt_pos3i'] ?>"><img src="img/button/image_pos3.gif" alt="" width="15" height="15" border="0"></a></td>
			<td><img src="img/leer.gif" alt="" name="imgpos4" width="7" height="10" id="imgpos4"></td>
			<td><a href="javascript:;" onclick="changeImagePos(4);this.blur();return false;" title="<?php echo $BL['be_cnt_pos4i'] ?>"><img src="img/button/image_pos4.gif" alt="" width="15" height="15" border="0"></a></td>
		  <td><img src="img/leer.gif" alt="" name="imgpos5" width="7" height="10" id="imgpos5"></td>
		  <td><a href="javascript:;" onclick="changeImagePos(5);this.blur();return false;" title="<?php echo $BL['be_cnt_pos5i'] ?>"><img src="img/button/image_pos5.gif" alt="" width="15" height="15" border="0"></a></td>
		  <td><img src="img/leer.gif" alt="" name="imgpos6" width="7" height="10" id="imgpos6"></td>
		  <td><a href="javascript:;" onclick="changeImagePos(6);this.blur();return false;" title="<?php echo $BL['be_cnt_pos6i'] ?>"><img src="img/button/image_pos6.gif" alt="" width="15" height="15" border="0"></a></td>
			<td><img src="img/leer.gif" alt="" name="imgpos7" width="7" height="10" id="imgpos7"></td>
			<td><a href="javascript:;" onclick="changeImagePos(7);this.blur();return false;" title="<?php echo $BL['be_cnt_pos7i'] ?>"><img src="img/button/image_pos7.gif" alt="" width="15" height="15" border="0"></a></td>
		</tr>
	</table><script language="JavaScript" type="text/javascript">
			  <!--
			  changeImagePos(<?php echo intval($content['googlemaps']['cimage_pos']); ?>);
			  //-->
			  </script></td>
</tr>
<!-- end size and position -->
<tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="5" /></td></tr>
<tr>
	<td align="right" class="chatlist"></td>
	<td valign="top" class="rowspacer0x5"><img src="img/leer.gif" alt="" width="1" height="1" /></td>
</tr>
<!-- infowindow field -->
<tr>
  <td align="right" class="chatlist" valign="top" style="padding-top:3px;"><?php echo $BL['modules'][$content["module"]]['infowindow'] ?>:&nbsp;</td>
  <td><table width="480" border="0" cellpadding="0" cellspacing="0">    
    <tr>
      <td><table summary="" bgcolor="#e7e8eb" border="0" cellpadding="1" cellspacing="0">
			<tr>
				<td><input type="checkbox" style="vertical-align:middle;" name="gmaps_info_window" value="1" id="R1_1" <?php if ($content['googlemaps']['gmaps_info_window']==1) echo"checked"; ?> /></td><td><label for="R1_1"><?php echo $BL['modules'][$content["module"]]['info_window']; ?></label>&nbsp;</td></tr></table></td>
      <td><?php echo $BL['modules'][$content["module"]]['width']; ?> <input type="text" name="gmaps_info_width" class="f11b width50" value="<?php echo $content['googlemaps']['gmaps_info_width']; ?>" />px</td>
    </tr>
  </table>
  </td>
</tr>
<!-- end infowindow field -->
<tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="5" /></td></tr>
<tr>
	<td align="right" class="chatlist"></td>
	<td valign="top" class="rowspacer0x5"><img src="img/leer.gif" alt="" width="1" height="1" /></td>
</tr>
<!-- marker field -->
<tr>
  <td align="right" valign="top" class="chatlist" style="padding-top:3px;"><?php echo $BL['modules'][$content["module"]]['marker'] ?>:&nbsp;</td>
  <td><table summary="" bgcolor="#e7e8eb" border="0" cellpadding="1" cellspacing="0">
			<tr>
				<td><input type="checkbox" style="vertical-align:middle;" name="gmaps_marker" value="1" id="R2_1" <?php if ($content['googlemaps']['gmaps_marker']==1) echo"checked"; ?> /></td>
        <td><label for="R2_1"><?php echo $BL['modules'][$content["module"]]['marker_show']; ?></label>&nbsp;&nbsp;&nbsp;&nbsp;<span style="font-size: 7pt;"><?php echo $BL['modules'][$content["module"]]['marker_info']; ?></span></td>
      </tr>
  </table></td>
</tr>
<!-- end marker field -->
<tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="5" /></td></tr>

<!-- little space -->
<tr><td colspan="2" class="rowspacer0x7"><img src="img/leer.gif" alt="" width="1" height="1" /></td></tr>
<!-- end space -->
<!-- Tabs section -->
<tr>
  <td align="right" valign="top" class="chatlist" style="padding-top:3px;"><?php echo $BL['modules'][$content["module"]]['tabs'] ?>:&nbsp;</td>
  <td><table width="480" border="0" cellpadding="0" cellspacing="0">    
    <tr>
	   <td align="left"><?php echo $BL['be_cnt_position'] ?>:&nbsp;</td>
	   <td valign="top" width="100%" align="left"><table border="0" cellpadding="0" cellspacing="0" summary="">
		   <tr>
        <td><select name="cat_pos" class="f10" id="cat_pos" onChange="changeCatPosMenu();">
			    <option value="0" <?php is_selected(0, $content['googlemaps']['cat_pos']) ?>><?php echo $BL['modules'][$content["module"]]['cat_pos0'] ?></option>
			    <option value="1" <?php is_selected(1, $content['googlemaps']['cat_pos']) ?>><?php echo $BL['modules'][$content["module"]]['cat_pos1'] ?></option>
			    <option value="2" <?php is_selected(2, $content['googlemaps']['cat_pos']) ?>><?php echo $BL['modules'][$content["module"]]['cat_pos2'] ?></option>
          <option value="3" <?php is_selected(3, $content['googlemaps']['cat_pos']) ?>><?php echo $BL['modules'][$content["module"]]['cat_pos3'] ?></option>
		      </select>
        </td>
			  <td><img src="img/leer.gif" alt="" width="3" height="1"></td>
			  <td><img src="img/symbole/content_selected.gif" alt="" name="catpos0" width="7" height="10" id="catpos0"></td>
			  <td><a href="javascript:;" onclick="changeCatPos(0);this.blur();return false;" title="<?php echo $BL['modules'][$content["module"]]['cat_pos0i'] ?>"><img src="include/inc_module/mod_googlemaps/img/cat_pos0.gif" alt="" width="15" height="15" border="0"></a></td>
			  <td><img src="img/leer.gif" alt="" name="catpos1" width="7" height="10" id="catpos1"></td>
			  <td><a href="javascript:;" onclick="changeCatPos(1);this.blur();return false;" title="<?php echo $BL['modules'][$content["module"]]['cat_pos1i'] ?>"><img src="include/inc_module/mod_googlemaps/img/cat_pos1.gif" alt="" width="15" height="15" border="0"></a></td>
			  <td><img src="img/leer.gif" alt="" name="catpos2" width="7" height="10" id="catpos2"></td>
			  <td><a href="javascript:;" onclick="changeCatPos(2);this.blur();return false;" title="<?php echo $BL['modules'][$content["module"]]['cat_pos2i'] ?>"><img src="include/inc_module/mod_googlemaps/img/cat_pos2.gif" alt="" width="15" height="15" border="0"></a></td>
        <td><img src="img/leer.gif" alt="" name="catpos3" width="7" height="10" id="catpos3"></td>
			  <td><a href="javascript:;" onclick="changeCatPos(3);this.blur();return false;" title="<?php echo $BL['modules'][$content["module"]]['cat_pos3i'] ?>"><img src="include/inc_module/mod_googlemaps/img/cat_pos3.gif" alt="" width="15" height="15" border="0"></a></td>
      </tr></table>
      </td>
    </tr>
    <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="5" /></td></tr>
    <tr>
      <td colspan="2"><span id="tabsWidth"><?php echo $BL['modules'][$content["module"]]['width']; ?></span> <input type="text" name="gmaps_tabs_width" class="f11b width50" value="<?php echo $content['googlemaps']['gmaps_tabs_width']; ?>">px&nbsp;&nbsp;&nbsp;&nbsp;<span id='tabsHeight'></span></td>
    
    </tr>

<script language="JavaScript" type="text/javascript">
<!--
function changeCatPos(x) {
	document.articlecontent.cat_pos.selectedIndex = x;
	for(i=0; i<=3; i++)	{
		if(i==x) {
			MM_swapImage('catpos'+i,'','img/symbole/content_selected.gif',0);
		} else {
			MM_swapImage('catpos'+i,'','img/leer.gif',0);
		}
	}
	if (x==1){
    document.getElementById('tabsWidth').innerHTML = '<?php echo $BL['modules'][$content["module"]]['height']; ?>';
    document.getElementById('tabsHeight').innerHTML = '';
  } else if (x !=3) {
    document.getElementById('tabsWidth').innerHTML = '<?php echo $BL['modules'][$content["module"]]['width']; ?>';
    document.getElementById('tabsHeight').innerHTML = '';
  } else if (x == 3){
    document.getElementById('tabsWidth').innerHTML = '<?php echo $BL['modules'][$content["module"]]['width']; ?>';
    document.getElementById('tabsHeight').innerHTML = '<?php echo $BL['modules'][$content["module"]]['height'].' <input type="text" name="gmaps_tabs_height" class="f11b width50" value="'.$content['googlemaps']['gmaps_tabs_height'].'">px'; ?>';
  }
}
function changeCatPosMenu() {
	var x = document.articlecontent.cat_pos.selectedIndex;
	for(i=0; i<=3; i++)	{
		if(i==x) {
			MM_swapImage('catpos'+i,'','img/symbole/content_selected.gif',0);
		} else {
			MM_swapImage('catpos'+i,'','img/leer.gif',0);
		}
	}
	document.articlecontent.cat_pos.focus();
	if (x==1){
    document.getElementById('tabsWidth').innerHTML = '<?php echo $BL['modules'][$content["module"]]['height']; ?>';
    document.getElementById('tabsHeight').innerHTML = '';
  } else if (x !=3) {
    document.getElementById('tabsWidth').innerHTML = '<?php echo $BL['modules'][$content["module"]]['width']; ?>';
    document.getElementById('tabsHeight').innerHTML = '';
  } else if (x == 3){
    document.getElementById('tabsWidth').innerHTML = '<?php echo $BL['modules'][$content["module"]]['width']; ?>';
    document.getElementById('tabsHeight').innerHTML = '<?php echo $BL['modules'][$content["module"]]['height'].' <input type="text" name="gmaps_tabs_height" class="f11b width50" value="'.$content['googlemaps']['gmaps_tabs_height'].'">px'; ?>';
  }
}

changeCatPos(<?php echo intval($content['googlemaps']['cat_pos']); ?>);
//-->
</script>
      
    <!-- little space -->
    <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="5" /></td></tr>
    <!-- end space -->
    <tr>
      <td colspan="2">
      <div style="float:left;font-size: 7pt;">CSS Definitions: template/css/gm_sidebar.css</div>
      </td>
    </tr>
    <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="5" /></td></tr>
    <tr><td colspan="2" class="rowspacer0x5"><img src="img/leer.gif" alt="" width="1" height="1" /></td></tr>
  </table></td>
</tr>

<!-- categorize section -->
<tr>
  <td align="left" valign="top" class="chatlist" style="padding-top:3px;">&nbsp;</td>
  <td><table width="480" border="0" cellpadding="0" cellspacing="0" summary="">
    <tr>
      <td colspan="2"><table summary="" border="0" cellpadding="1" cellspacing="0">
			 <tr>
        <td valign="top"><table summary="" bgcolor="#e7e8eb" width="150" border="0" cellpadding="1" cellspacing="0">
			<tr>
				<td width="20"><input type="checkbox" style="vertical-align:middle;" name="gmaps_showcat" value="1" id="R25_1" <?php if ($content['googlemaps']['gmaps_showcat']==1) echo"checked"; ?> /></td>
        <td><label for="R25_1"><?php echo $BL['modules'][$content["module"]]['categrize']; ?></label>&nbsp;</td>
      </tr>
    </table></td>       
        <td valign="top">&nbsp;&nbsp;<?php echo $BL['modules'][$content["module"]]['cat_txt']; ?>&nbsp;</td>
        <td valign="top"><textarea rows="4" name="gmaps_cat_txt" cols="15" wrap='OFF' class='msgtext' id='gmaps_cat_txt' style='width:250px'><?php echo $content['googlemaps']['gmaps_cat_txt']; ?></textarea></td>
        <td valign="top"><a href="#rtp_anchor" onclick="contractField('gmaps_cat_txt', 'V')"><img src="img/button/minus_11x11.gif" border="0" alt="-" width="11" height="11"></a><a href="#rtp_anchor" onclick="growField('gmaps_cat_txt', 'V')"><img src="img/button/add_11x11.gif" border="0" alt="+" width="11" height="11"></a></td>
       </tr></table>
      </td>
    </tr>
    <!-- little space -->
    <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="5" /></td></tr>
    <!-- end space -->
    <tr>
      <td colspan="2">
      <div><div style="float:left" class="chatlist"><?php echo $BL['modules'][$content["module"]]['gmaps_cat_initon']; ?>:&nbsp;</div><div style="float:left" id="inhalt"><?php echo $cat_list ?></div><div style="float:left;padding-left:5px;" id="hidcat"></div></div>
      </td>
    </tr>
    <!-- little space -->
    <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="5" /></td></tr>
    <!-- end space -->
    <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="5" /></td></tr>
    <tr><td colspan="2" class="rowspacer0x5"><img src="img/leer.gif" alt="" width="1" height="1" /></td></tr>
  </table><script language="JavaScript" type="text/javascript">
			  <!--
			  checkhidden();
			  //-->
			  </script>
  </td>
</tr>
<!-- end cateogorize section -->

<!-- Routeplanner section -->
<tr>
  <td align="left" valign="top" class="chatlist" style="padding-top:3px;">&nbsp;</td>
  <td><table width="480" border="0" cellpadding="0" cellspacing="0">    
    <tr>
     <td colspan="2"><table summary="" border="0" cellpadding="1" cellspacing="0">
      <tr>
      <td valign="top"><table summary="" bgcolor="#e7e8eb" width="150" border="0" cellpadding="1" cellspacing="0">
			<tr>
				<td width="20"><input type="checkbox" style="vertical-align:middle;" name="gmaps_planner_active" value="1" id="R1_11" <?php if ($content['googlemaps']['gmaps_planner_active']==1) echo"checked"; ?> /></td>
        <td><label for="R1_11"><?php echo $BL['modules'][$content["module"]]['planner']; ?></label>&nbsp;</td>
      </tr>
    </table></td>
      <td valign="top">&nbsp;&nbsp;<?php echo $BL['modules'][$content["module"]]['cat_txt']; ?>&nbsp;</td>
      <td valign="top"><textarea rows="4" name="gmaps_planner_txt" cols="15" wrap='OFF' class='msgtext' id='gmaps_planner_txt' style='width:250px'><?php echo $content['googlemaps']['gmaps_planner_txt']; ?></textarea></td>
      <td valign="top"><a href="#rtp_anchor" onclick="contractField('gmaps_planner_txt', 'V')"><img src="img/button/minus_11x11.gif" border="0" alt="-" width="11" height="11"></a><a href="#rtp_anchor" onclick="growField('gmaps_planner_txt', 'V')"><img src="img/button/add_11x11.gif" border="0" alt="+" width="11" height="11"></a></td>
     </tr></table>
     </td>
    </tr>
    <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="5" /></td></tr>
    <tr><td colspan="2" class="rowspacer0x5"><img src="img/leer.gif" alt="" width="1" height="1" /></td></tr>
  </table></td>
</tr>
<!-- end Routeplanner section -->

<!-- search section -->
<tr>
  <td align="left" valign="top" class="chatlist" style="padding-top:3px;">&nbsp;</td>
  <td><table border="0" cellpadding="0" cellspacing="0" summary="">
    <tr>
      <td colspan="2"><table summary="" border="0" cellpadding="1" cellspacing="0">
			 <tr>
        <td valign="top"><table summary="" bgcolor="#e7e8eb" width="150" border="0" cellpadding="1" cellspacing="0">
			<tr>
				<td width="20"><input type="checkbox" style="vertical-align:middle;" name="gmaps_showsearch" value="1" id="R35_1" <?php if ($content['googlemaps']['gmaps_showsearch']==1) echo"checked"; ?> /></td>
        <td><label for="R35_1"><?php echo $BL['modules'][$content["module"]]['search']; ?></label>&nbsp;</td>
      </tr>
    </table></td>       
        <td valign="top">&nbsp;&nbsp;<?php echo $BL['modules'][$content["module"]]['cat_txt']; ?>&nbsp;</td>
        <td valign="top"><textarea rows="4" name="gmaps_search_txt" cols="15" wrap='OFF' class='msgtext' id='gmaps_search_txt' style='width:250px'><?php echo $content['googlemaps']['gmaps_search_txt']; ?></textarea>
        </td>
        <td valign="top"><a href="#rtp_anchor" onclick="contractField('gmaps_search_txt', 'V')"><img src="img/button/minus_11x11.gif" border="0" alt="-" width="11" height="11"></a><a href="#rtp_anchor" onclick="growField('gmaps_search_txt', 'V')"><img src="img/button/add_11x11.gif" border="0" alt="+" width="11" height="11"></a></td>
       </tr></table>
      </td>
    </tr>
    <!-- little space -->
    <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="5" /></td></tr>
    <!-- end space --> 
    <tr>
        <td colspan="2">
          <table summary="" border="0" cellpadding="0" cellspacing="0"  onclick="if (document.getElementById('R67_2').checked==true){document.getElementById('R67_5').disabled=false;document.getElementById('R67_6').disabled=false;document.getElementById('R67_7').disabled=false}else{document.getElementById('R67_5').disabled=true;document.getElementById('R67_6').disabled=true;document.getElementById('R67_7').disabled=true}">
            <tr>
              <td width="20"><input type="checkbox" style="vertical-align:middle;" name="gmaps_search_cont" value="1" id="R67_2" <?php if ($content['googlemaps']['gmaps_search_cont']==1) echo"checked='checked'"; ?> /></td>
              <td width="120"><label for="R67_2"><?php echo $BL['modules'][$content["module"]]['gmaps_search_cont']; ?></label>&nbsp;</td>
              <td width=""><?php echo $BL['modules'][$content["module"]]['gmaps_searchincl']; ?>&nbsp;&nbsp;</td>
              <td width=""><input type="checkbox" style="vertical-align:middle;" name="gmaps_searchInTit" value="1" id="R67_5" <?php if ($content['googlemaps']['gmaps_searchInTit']==1) echo"checked='checked'"; ?><?php if ($content['googlemaps']['gmaps_search_cont'] !== 1) echo " disabled"; ?> />&nbsp;<label for="R67_5"><?php echo $BL['modules'][$content["module"]]['gmaps_searchInTit']; ?></label>&nbsp;&nbsp;</td>
              <td width=""><input type="checkbox" style="vertical-align:middle;" name="gmaps_searchInInfo" value="1" id="R67_6" <?php if ($content['googlemaps']['gmaps_searchInInfo']==1) echo"checked='checked'"; ?><?php if ($content['googlemaps']['gmaps_search_cont'] !== 1) echo " disabled"; ?> />&nbsp;<label for="R67_6"><?php echo $BL['modules'][$content["module"]]['gmaps_searchInInfo']; ?></label>&nbsp;&nbsp;</td>
              <td width=""><input type="checkbox" style="vertical-align:middle;" name="gmaps_searchInSrch" value="1" id="R67_7" <?php if ($content['googlemaps']['gmaps_searchInSrch']==1) echo"checked='checked'"; ?><?php if ($content['googlemaps']['gmaps_search_cont'] !== 1) echo " disabled"; ?> />&nbsp;<label for="R67_7"><?php echo $BL['modules'][$content["module"]]['gmaps_searchInSrch']; ?></label>&nbsp;&nbsp;</td>
            </tr>
          </table>
          <table summary="" border="0" cellpadding="0" cellspacing="0" onclick="if (document.getElementById('R67_3').checked==true){document.getElementById('R67_1').disabled=false}else{document.getElementById('R67_1').disabled=true}">			 
            <tr> 
              <td width="20"><input type="checkbox" style="vertical-align:middle;" name="gmaps_search_adr" value="1" id="R67_3" <?php if ($content['googlemaps']['gmaps_search_adr']==1) echo"checked='checked'"; ?> /></td>
              <td width="200"><label for="R67_3"><?php echo $BL['modules'][$content["module"]]['gmaps_search_adr']; ?></label>&nbsp;</td>
            </tr>
            <tr>
              <td valign="top">&nbsp;</td>			  
              <td valign="top"><input type="checkbox" style="vertical-align:middle;" name="gmaps_search_rad" value="1" id="R67_1" <?php if ($content['googlemaps']['gmaps_search_rad']==1) echo"checked='checked'"; ?><?php if ($content['googlemaps']['gmaps_search_adr'] !== 1) echo " disabled"; ?> />
              <label for="R67_1"><?php echo $BL['modules'][$content["module"]]['gmaps_search_rad']; ?></label></td>
              <td valign="top"><textarea rows="5" name="gmaps_search_radval" cols="4" wrap='OFF' class='msgtext' id='gmaps_search_radval' style='width:80px'><?php echo $content['googlemaps']['gmaps_search_radval']; ?></textarea></td>
              <td valign="top"><div style="float:left;font-size: 7pt;width:200px;margin-left:5px;"><?php echo $BL['modules'][$content["module"]]['gmaps_search_rad2']; ?></div></td>
            </tr>
          </table>
        </td>
    </tr>
    <!-- little space -->
    <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="5" /></td></tr>
    <!-- end space --> 
    <tr>
      <td colspan="2"><table summary="" width="480" border="0" cellpadding="0" cellspacing="0">
			<tr>
				<td width="20"><input type="checkbox" style="vertical-align:middle;" name="gmaps_search_hideem" value="1" id="R35_9" <?php if ($content['googlemaps']['gmaps_search_hideem']==1) echo"checked"; ?> /></td>
        <td><label for="R35_9"><?php echo $BL['modules'][$content["module"]]['gmaps_search_hideem']; ?></label>&nbsp;</td>
      </tr>
      <tr>
				<td width="20">&nbsp;</td>
        <td><div style="font-size: 7pt;"><?php echo $BL['modules'][$content["module"]]['gmaps_search_hideem2']; ?></div></td>
      </tr>
    </table></td>
    </tr>
    <!-- little space -->
    <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="5" /></td></tr>
    <!-- end space --> 
  </table>
  </td>
</tr>
<!-- end search section -->

<tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="5" /></td></tr>
<tr><td colspan="2" class="rowspacer0x7"><img src="img/leer.gif" alt="" width="1" height="1" /></td></tr>

<!-- routeplanner extern -->
<tr>
  <td align="left" valign="top" class="chatlist" style="padding-top:3px;">&nbsp;</td>
  <td>
    <input type="checkbox" style="vertical-align:middle;" name="gmaps_planner_extern" value="1" id="R47_1" <?php if ($content['googlemaps']['gmaps_planner_extern']==1) echo"checked='checked'"; ?> />
    <label for="R47_1"><?php echo $BL['modules'][$content["module"]]['gmaps_planner_extern']; ?></label>      
  </td>
</tr>

<tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="5" /></td></tr>
<tr><td colspan="2" class="rowspacer0x7"><img src="img/leer.gif" alt="" width="1" height="1" /></td></tr>

<!-- init field -->
<tr>
  <td align="right" valign="top" class="chatlist"><div style="padding:5px;"><?php echo $BL['modules'][$content["module"]]['init'] ?>:</div></td>
  <td bgcolor="#e7e8eb">
    <table width="440" border="0" cellpadding="3" cellspacing="0">
          <tr>
           <td height="50" valign="middle">
              <table border="0" width="450" cellspacing="0" cellpadding="0" style="margin-left:12px;">                
               <tr>
                <td> <label for="R7_1" style="cursor:pointer;">
<img src="<?php echo PATH_IMG_BACKEND; ?>GMapInitMap<?php if ($content['googlemaps']['gmaps_popup_init']!=0) echo"1"; ?>.gif" id="R7_11" alt="moofx" title="<?php if ($content['googlemaps']['gmaps_popup_init']!=0) echo $BL['modules'][$content["module"]]['activate']; else echo $BL['modules'][$content["module"]]['activated']; ?>" border="0" height="50" width="75" onclick="if(this.parentNode.click)this.parentNode.click();"></label>
<input name="gmaps_popup_init" id="R7_1" value="0" type="radio" <?php if ($content['googlemaps']['gmaps_popup_init']==0) echo"checked "; ?>onclick="document.getElementById('R7_11').src='<?php echo PATH_IMG_BACKEND; ?>GMapInitMap.gif', document.getElementById('R7_21').src='<?php echo PATH_IMG_BACKEND; ?>GMapInitSat1.gif', document.getElementById('R7_31').src='<?php echo PATH_IMG_BACKEND; ?>GMapInitHyb1.gif', document.getElementById('R7_41').src='<?php echo PATH_IMG_BACKEND; ?>GMapInitPhy1.gif', document.getElementById('R7_51').src='<?php echo PATH_IMG_BACKEND; ?>GMapInit3dm1.gif', document.getElementById('R7_11').title='<?php echo $BL['modules'][$content["module"]]['activated']; ?>', document.getElementById('R7_21').title='<?php echo $BL['modules'][$content["module"]]['activate']; ?>', document.getElementById('R7_31').title='<?php echo $BL['modules'][$content["module"]]['activate']; ?>', document.getElementById('R7_41').title='<?php echo $BL['modules'][$content["module"]]['activate']; ?>', document.getElementById('R7_51').title='<?php echo $BL['modules'][$content["module"]]['activate']; ?>'" class="radio_img">&nbsp;</td>
<td><label for="R7_2" style="cursor:pointer;">
<img src="<?php echo PATH_IMG_BACKEND; ?>GMapInitSat<?php if ($content['googlemaps']['gmaps_popup_init']!=1) echo"1"; ?>.gif" id="R7_21" alt="moofx" title="<?php if ($content['googlemaps']['gmaps_popup_init']!=1) echo $BL['modules'][$content["module"]]['activate']; else echo $BL['modules'][$content["module"]]['activated']; ?>" border="0" height="50" width="75" onclick="if(this.parentNode.click)this.parentNode.click();"></label>
<input name="gmaps_popup_init" id="R7_2" value="1" type="radio" <?php if ($content['googlemaps']['gmaps_popup_init']==1) echo"checked "; ?>onclick="document.getElementById('R7_21').src='<?php echo PATH_IMG_BACKEND; ?>GMapInitSat.gif', document.getElementById('R7_11').src='<?php echo PATH_IMG_BACKEND; ?>GMapInitMap1.gif', document.getElementById('R7_31').src='<?php echo PATH_IMG_BACKEND; ?>GMapInitHyb1.gif', document.getElementById('R7_41').src='<?php echo PATH_IMG_BACKEND; ?>GMapInitPhy1.gif', document.getElementById('R7_51').src='<?php echo PATH_IMG_BACKEND; ?>GMapInit3dm1.gif', document.getElementById('R7_21').title='<?php echo $BL['modules'][$content["module"]]['activated']; ?>', document.getElementById('R7_11').title='<?php echo $BL['modules'][$content["module"]]['activate']; ?>', document.getElementById('R7_31').title='<?php echo $BL['modules'][$content["module"]]['activate']; ?>', document.getElementById('R7_41').title='<?php echo $BL['modules'][$content["module"]]['activate']; ?>', document.getElementById('R7_51').title='<?php echo $BL['modules'][$content["module"]]['activate']; ?>'" class="radio_img">&nbsp;</td>
<td><label for="R7_3" style="cursor:pointer;">
<img src="<?php echo PATH_IMG_BACKEND; ?>GMapInitHyb<?php if ($content['googlemaps']['gmaps_popup_init']!=2) echo"1"; ?>.gif" id="R7_31" alt="moofx" title="<?php if ($content['googlemaps']['gmaps_popup_init']!=2) echo $BL['modules'][$content["module"]]['activate']; else echo $BL['modules'][$content["module"]]['activated']; ?>" border="0" height="50" width="75" onclick="if(this.parentNode.click)this.parentNode.click();"></label>
<input name="gmaps_popup_init" id="R7_3" value="2" type="radio" <?php if ($content['googlemaps']['gmaps_popup_init']==2) echo"checked "; ?>onclick="document.getElementById('R7_31').src='<?php echo PATH_IMG_BACKEND; ?>GMapInitHyb.gif', document.getElementById('R7_11').src='<?php echo PATH_IMG_BACKEND; ?>GMapInitMap1.gif', document.getElementById('R7_21').src='<?php echo PATH_IMG_BACKEND; ?>GMapInitSat1.gif', document.getElementById('R7_41').src='<?php echo PATH_IMG_BACKEND; ?>GMapInitPhy1.gif', document.getElementById('R7_51').src='<?php echo PATH_IMG_BACKEND; ?>GMapInit3dm1.gif', document.getElementById('R7_31').title='<?php echo $BL['modules'][$content["module"]]['activated']; ?>', document.getElementById('R7_11').title='<?php echo $BL['modules'][$content["module"]]['activate']; ?>', document.getElementById('R7_21').title='<?php echo $BL['modules'][$content["module"]]['activate']; ?>', document.getElementById('R7_41').title='<?php echo $BL['modules'][$content["module"]]['activate']; ?>', document.getElementById('R7_51').title='<?php echo $BL['modules'][$content["module"]]['activate']; ?>'" class="radio_img">&nbsp;</td>
<td><label for="R7_4" style="cursor:pointer;">
<img src="<?php echo PATH_IMG_BACKEND; ?>GMapInitPhy<?php if ($content['googlemaps']['gmaps_popup_init']!=3) echo"1"; ?>.gif" id="R7_41" alt="moofx" title="<?php if ($content['googlemaps']['gmaps_popup_init']!=3) echo $BL['modules'][$content["module"]]['activate']; else echo $BL['modules'][$content["module"]]['activated']; ?>" border="0" height="50" width="75" onclick="if(this.parentNode.click)this.parentNode.click();"></label>
<input name="gmaps_popup_init" id="R7_4" value="3" type="radio" <?php if ($content['googlemaps']['gmaps_popup_init']==3) echo"checked "; ?>onclick="document.getElementById('R7_41').src='<?php echo PATH_IMG_BACKEND; ?>GMapInitPhy.gif', document.getElementById('R7_11').src='<?php echo PATH_IMG_BACKEND; ?>GMapInitMap1.gif', document.getElementById('R7_21').src='<?php echo PATH_IMG_BACKEND; ?>GMapInitSat1.gif', document.getElementById('R7_31').src='<?php echo PATH_IMG_BACKEND; ?>GMapInitHyb1.gif', document.getElementById('R7_51').src='<?php echo PATH_IMG_BACKEND; ?>GMapInit3dm1.gif', document.getElementById('R7_41').title='<?php echo $BL['modules'][$content["module"]]['activated']; ?>', document.getElementById('R7_11').title='<?php echo $BL['modules'][$content["module"]]['activate']; ?>', document.getElementById('R7_21').title='<?php echo $BL['modules'][$content["module"]]['activate']; ?>', document.getElementById('R7_31').title='<?php echo $BL['modules'][$content["module"]]['activate']; ?>', document.getElementById('R7_51').title='<?php echo $BL['modules'][$content["module"]]['activate']; ?>'" class="radio_img">&nbsp;</td>
<td><label for="R7_5" style="cursor:pointer;">
<img src="<?php echo PATH_IMG_BACKEND; ?>GMapInit3dm<?php if ($content['googlemaps']['gmaps_popup_init']!=4) echo"1"; ?>.gif" id="R7_51" alt="moofx" title="<?php if ($content['googlemaps']['gmaps_popup_init']!=4) echo $BL['modules'][$content["module"]]['activate']; else echo $BL['modules'][$content["module"]]['activated']; ?>" border="0" height="50" width="75" onclick="if(this.parentNode.click)this.parentNode.click();"></label>
<input name="gmaps_popup_init" id="R7_5" value="4" type="radio" <?php if ($content['googlemaps']['gmaps_popup_init']==4) echo"checked "; ?>onclick="document.getElementById('R7_51').src='<?php echo PATH_IMG_BACKEND; ?>GMapInit3dm.gif', document.getElementById('R7_11').src='<?php echo PATH_IMG_BACKEND; ?>GMapInitMap1.gif', document.getElementById('R7_21').src='<?php echo PATH_IMG_BACKEND; ?>GMapInitSat1.gif', document.getElementById('R7_31').src='<?php echo PATH_IMG_BACKEND; ?>GMapInitHyb1.gif', document.getElementById('R7_41').src='<?php echo PATH_IMG_BACKEND; ?>GMapInitPhy1.gif', document.getElementById('R7_51').title='<?php echo $BL['modules'][$content["module"]]['activated']; ?>', document.getElementById('R7_11').title='<?php echo $BL['modules'][$content["module"]]['activate']; ?>', document.getElementById('R7_21').title='<?php echo $BL['modules'][$content["module"]]['activate']; ?>', document.getElementById('R7_31').title='<?php echo $BL['modules'][$content["module"]]['activate']; ?>', document.getElementById('R7_41').title='<?php echo $BL['modules'][$content["module"]]['activate']; ?>'" class="radio_img">&nbsp;</td>
 </tr>
              </table>
            </td>
          </tr>
      </table>
    </td>
</tr>
<tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="5" /></td></tr>
<tr>
  <td align="right" valign="top" class="chatlist">&nbsp;</td>
  <td>
     <?php echo $BL['modules'][$content["module"]]['initzoom']; ?>&nbsp; <input type="text" name="gmaps_initzoom" class="f11b width50" value="<?php echo $content['googlemaps']['gmaps_initzoom']; ?>">
  </td>
</tr>
<tr>
  <td>&nbsp;</td>
  <td style="font-size: 7pt;">
    <?php echo $BL['modules'][$content["module"]]['expl_zoom']; ?>
  </td>
</tr>
<!-- end init field -->
<tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="5" /></td></tr>
<tr><td colspan="2" class="rowspacer0x7"><img src="img/leer.gif" alt="" width="1" height="1" /></td></tr>
<!-- zoom field -->
<tr>
  <td align="right" valign="top" class="chatlist"><?php echo $BL['modules'][$content["module"]]['zoom'] ?>:&nbsp;</td>
  <td><table summary="" bgcolor="" border="0" cellpadding="1" cellspacing="0">
			<tr>
				<td><input type="checkbox" style="vertical-align:middle;" name="gmaps_zoom_dbl" value="1" id="R6_1" <?php if ($content['googlemaps']['gmaps_zoom_dbl']==1) echo"checked='checked'"; ?> /></td>
        <td><label for="R6_1"><?php echo $BL['modules'][$content["module"]]['gmaps_zoom_dbl']; ?></label>&nbsp;</td>
				<td><input type="checkbox" style="vertical-align:middle;" name="gmaps_zoom_scroll" value="1" id="R6_2" <?php if ($content['googlemaps']['gmaps_zoom_scroll']==1) echo"checked='checked'"; ?> /></td>
        <td><label for="R6_2"><?php echo $BL['modules'][$content["module"]]['gmaps_zoom_scroll']; ?></label>&nbsp;</td>
      </tr>
			<tr>
				<td colspan="4"><input type="checkbox" style="vertical-align:middle;" name="gmaps_zoom_effect" value="1" id="R6_3" <?php if ($content['googlemaps']['gmaps_zoom_effect']==1) echo"checked='checked'"; ?> />
        <label for="R6_3"><?php echo $BL['modules'][$content["module"]]['gmaps_zoom_effect']; ?></label>&nbsp;</td>
      </tr>
  </table></td>
</tr>
<tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="5" /></td></tr>
<tr>
	<td align="right" class="chatlist"></td>
	<td valign="top" class="rowspacer0x5"><img src="img/leer.gif" alt="" width="1" height="1" /></td>
</tr>
<tr>
  <td align="right" valign="top" class="chatlist">&nbsp;</td>
  <td bgcolor="#e7e8eb">
     <table border="0" width="450" cellspacing="3" cellpadding="0" style="margin-left:12px;">                
        <tr>
           <td><label for="R4_1" style="cursor:pointer;"><img src="<?php echo PATH_IMG_BACKEND; ?>GNoMapControl<?php if ($content['googlemaps']['gmaps_popup_control']!=0) echo"1"; ?>.gif" id="R4_11" alt="moofx" title="<?php if ($content['googlemaps']['gmaps_popup_control']!=0) echo $BL['modules'][$content["module"]]['activate']; else echo $BL['modules'][$content["module"]]['activated']; ?>" border="0" height="100" width="75" onclick="if(this.parentNode.click)this.parentNode.click();"></label>
                  <input name="gmaps_popup_control" id="R4_1" value="0" type="radio" <?php if ($content['googlemaps']['gmaps_popup_control']==0) echo"checked "; ?>onclick="document.getElementById('R4_11').src='<?php echo PATH_IMG_BACKEND; ?>GNoMapControl.gif', document.getElementById('R4_21').src='<?php echo PATH_IMG_BACKEND; ?>GSmallZoomControl1.gif', document.getElementById('R4_31').src='<?php echo PATH_IMG_BACKEND; ?>GSmallMapControl1.gif', document.getElementById('R4_41').src='<?php echo PATH_IMG_BACKEND; ?>GLargeMapControl1.gif', document.getElementById('R4_51').src='<?php echo PATH_IMG_BACKEND; ?>ExtLargeMapControl1.gif', document.getElementById('R4_11').title='<?php echo $BL['modules'][$content["module"]]['activated']; ?>', document.getElementById('R4_21').title='<?php echo $BL['modules'][$content["module"]]['activate']; ?>', document.getElementById('R4_31').title='<?php echo $BL['modules'][$content["module"]]['activate']; ?>', document.getElementById('R4_41').title='<?php echo $BL['modules'][$content["module"]]['activate']; ?>', document.getElementById('R4_51').title='<?php echo $BL['modules'][$content["module"]]['activate']; ?>'" class="radio_img">&nbsp;</td>
                <td><label for="R4_2" style="cursor:pointer;"><img src="<?php echo PATH_IMG_BACKEND; ?>GSmallZoomControl<?php if ($content['googlemaps']['gmaps_popup_control']!=1) echo"1"; ?>.gif" id="R4_21" alt="moofx" title="<?php if ($content['googlemaps']['gmaps_popup_control']!=1) echo $BL['modules'][$content["module"]]['activate']; else echo $BL['modules'][$content["module"]]['activated']; ?>" border="0" height="100" width="75" onclick="if(this.parentNode.click)this.parentNode.click();"></label>
                  <input name="gmaps_popup_control" id="R4_2" value="1" type="radio" <?php if ($content['googlemaps']['gmaps_popup_control']==1) echo"checked "; ?>onclick="document.getElementById('R4_21').src='<?php echo PATH_IMG_BACKEND; ?>GSmallZoomControl.gif', document.getElementById('R4_11').src='<?php echo PATH_IMG_BACKEND; ?>GNoMapControl1.gif', document.getElementById('R4_31').src='<?php echo PATH_IMG_BACKEND; ?>GSmallMapControl1.gif', document.getElementById('R4_41').src='<?php echo PATH_IMG_BACKEND; ?>GLargeMapControl1.gif', document.getElementById('R4_51').src='<?php echo PATH_IMG_BACKEND; ?>ExtLargeMapControl1.gif', document.getElementById('R4_21').title='<?php echo $BL['modules'][$content["module"]]['activated']; ?>', document.getElementById('R4_11').title='<?php echo $BL['modules'][$content["module"]]['activate']; ?>', document.getElementById('R4_31').title='<?php echo $BL['modules'][$content["module"]]['activate']; ?>', document.getElementById('R4_41').title='<?php echo $BL['modules'][$content["module"]]['activate']; ?>', document.getElementById('R4_51').title='<?php echo $BL['modules'][$content["module"]]['activate']; ?>'" class="radio_img">&nbsp;</td>
                <td><label for="R4_3" style="cursor:pointer;"><img src="<?php echo PATH_IMG_BACKEND; ?>GSmallMapControl<?php if ($content['googlemaps']['gmaps_popup_control']!=2) echo"1"; ?>.gif" id="R4_31" alt="moofx" title="<?php if ($content['googlemaps']['gmaps_popup_control']!=2) echo $BL['modules'][$content["module"]]['activate']; else echo $BL['modules'][$content["module"]]['activated']; ?>" border="0" height="100" width="75" onclick="if(this.parentNode.click)this.parentNode.click();"></label>
                  <input name="gmaps_popup_control" id="R4_3" value="2" type="radio" <?php if ($content['googlemaps']['gmaps_popup_control']==2) echo"checked "; ?>onclick="document.getElementById('R4_31').src='<?php echo PATH_IMG_BACKEND; ?>GSmallMapControl.gif', document.getElementById('R4_11').src='<?php echo PATH_IMG_BACKEND; ?>GNoMapControl1.gif', document.getElementById('R4_21').src='<?php echo PATH_IMG_BACKEND; ?>GSmallZoomControl1.gif', document.getElementById('R4_41').src='<?php echo PATH_IMG_BACKEND; ?>GLargeMapControl1.gif', document.getElementById('R4_51').src='<?php echo PATH_IMG_BACKEND; ?>ExtLargeMapControl1.gif', document.getElementById('R4_31').title='<?php echo $BL['modules'][$content["module"]]['activated']; ?>', document.getElementById('R4_11').title='<?php echo $BL['modules'][$content["module"]]['activate']; ?>', document.getElementById('R4_21').title='<?php echo $BL['modules'][$content["module"]]['activate']; ?>', document.getElementById('R4_41').title='<?php echo $BL['modules'][$content["module"]]['activate']; ?>', document.getElementById('R4_51').title='<?php echo $BL['modules'][$content["module"]]['activate']; ?>'" class="radio_img">&nbsp;</td>
                <td><label for="R4_4" style="cursor:pointer;"><img src="<?php echo PATH_IMG_BACKEND; ?>GLargeMapControl<?php if ($content['googlemaps']['gmaps_popup_control']!=3) echo"1"; ?>.gif" id="R4_41" alt="moofx" title="<?php if ($content['googlemaps']['gmaps_popup_control']!=3) echo $BL['modules'][$content["module"]]['activate']; else echo $BL['modules'][$content["module"]]['activated']; ?>" border="0" height="100" width="75" onclick="if(this.parentNode.click)this.parentNode.click();"></label>
                  <input name="gmaps_popup_control" id="R4_4" value="3" type="radio" <?php if ($content['googlemaps']['gmaps_popup_control']==3) echo"checked "; ?>onclick="document.getElementById('R4_41').src='<?php echo PATH_IMG_BACKEND; ?>GLargeMapControl.gif', document.getElementById('R4_11').src='<?php echo PATH_IMG_BACKEND; ?>GNoMapControl1.gif', document.getElementById('R4_21').src='<?php echo PATH_IMG_BACKEND; ?>GSmallZoomControl1.gif', document.getElementById('R4_31').src='<?php echo PATH_IMG_BACKEND; ?>GSmallMapControl1.gif', document.getElementById('R4_51').src='<?php echo PATH_IMG_BACKEND; ?>ExtLargeMapControl1.gif', document.getElementById('R4_41').title='<?php echo $BL['modules'][$content["module"]]['activated']; ?>', document.getElementById('R4_11').title='<?php echo $BL['modules'][$content["module"]]['activate']; ?>', document.getElementById('R4_21').title='<?php echo $BL['modules'][$content["module"]]['activate']; ?>', document.getElementById('R4_31').title='<?php echo $BL['modules'][$content["module"]]['activate']; ?>', document.getElementById('R4_51').title='<?php echo $BL['modules'][$content["module"]]['activate']; ?>'" class="radio_img">&nbsp;</td> 
                <td><label for="R4_5" style="cursor:pointer;"><img src="<?php echo PATH_IMG_BACKEND; ?>ExtLargeMapControl<?php if ($content['googlemaps']['gmaps_popup_control']!=4) echo"1"; ?>.gif" id="R4_51" alt="moofx" title="<?php if ($content['googlemaps']['gmaps_popup_control']!=4) echo $BL['modules'][$content["module"]]['activate']; else echo $BL['modules'][$content["module"]]['activated']; ?>" border="0" height="100" width="75" onclick="if(this.parentNode.click)this.parentNode.click();"></label>
                  <input name="gmaps_popup_control" id="R4_5" value="4" type="radio" <?php if ($content['googlemaps']['gmaps_popup_control']==4) echo"checked "; ?>onclick="document.getElementById('R4_51').src='<?php echo PATH_IMG_BACKEND; ?>ExtLargeMapControl.gif', document.getElementById('R4_11').src='<?php echo PATH_IMG_BACKEND; ?>GNoMapControl1.gif', document.getElementById('R4_21').src='<?php echo PATH_IMG_BACKEND; ?>GSmallZoomControl1.gif', document.getElementById('R4_31').src='<?php echo PATH_IMG_BACKEND; ?>GSmallMapControl1.gif', document.getElementById('R4_41').src='<?php echo PATH_IMG_BACKEND; ?>GLargeMapControl1.gif', document.getElementById('R4_51').title='<?php echo $BL['modules'][$content["module"]]['activated']; ?>', document.getElementById('R4_11').title='<?php echo $BL['modules'][$content["module"]]['activate']; ?>', document.getElementById('R4_21').title='<?php echo $BL['modules'][$content["module"]]['activate']; ?>', document.getElementById('R4_31').title='<?php echo $BL['modules'][$content["module"]]['activate']; ?>', document.getElementById('R4_41').title='<?php echo $BL['modules'][$content["module"]]['activate']; ?>'" class="radio_img">&nbsp;</td> 
          </tr>
      </table>
  </td>
</tr>
<!-- end zoom field -->
<tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="5" /></td></tr>
<tr><td colspan="2" class="rowspacer0x5"><img src="img/leer.gif" alt="" width="1" height="1" /></td></tr>

<!-- controls field -->
<tr>
  <td align="right" valign="top" class="chatlist"><?php echo $BL['modules'][$content["module"]]['controls'] ?>:&nbsp;</td>
  <td>
    <table border="0" width="450" cellspacing="3" cellpadding="0">                
      <tr>
    <td style="background:#e7e8eb;"><center><label for="R21_1"><img src="<?php echo PATH_IMG_BACKEND; ?>GMapTypeControlMap.gif" alt="" title="<?php echo $BL['modules'][$content["module"]]['gmaps_type_map']; ?>" border="0" height="19" width="75"></label><br /><input type="checkbox" name="gmaps_type_map" value="1" id="R21_1" <?php if ($content['googlemaps']['gmaps_type_map']==1) echo 'checked="checked"'; ?> /></center> </td>
    <td style="background:#e7e8eb;"><center><label for="R21_2"><img src="<?php echo PATH_IMG_BACKEND; ?>GMapTypeControlSat.gif" alt="" title="<?php echo $BL['modules'][$content["module"]]['gmaps_type_sat']; ?>" border="0" height="19" width="75"></label><br /><input type="checkbox" name="gmaps_type_sat" value="1" id="R21_2" <?php if ($content['googlemaps']['gmaps_type_sat']==1) echo 'checked="checked"'; ?> /></center> </td>
    <td style="background:#e7e8eb;"><center><label for="R21_3"><img src="<?php echo PATH_IMG_BACKEND; ?>GMapTypeControlHyb.gif" alt="" title="<?php echo $BL['modules'][$content["module"]]['gmaps_type_hyb']; ?>" border="0" height="19" width="75"></label><br /><input type="checkbox" name="gmaps_type_hyb" value="1" id="R21_3" <?php if ($content['googlemaps']['gmaps_type_hyb']==1) echo 'checked="checked"'; ?> /></center> </td>
    <td style="background:#e7e8eb;"><center><label for="R21_4"><img src="<?php echo PATH_IMG_BACKEND; ?>GMapTypeControlPhy.gif" alt="" title="<?php echo $BL['modules'][$content["module"]]['gmaps_type_phy']; ?>" border="0" height="19" width="75"></label><br /><input type="checkbox" name="gmaps_type_phy" value="1" id="R21_4" <?php if ($content['googlemaps']['gmaps_type_phy']==1) echo 'checked="checked"'; ?> /></center> </td>
    <td style="background:#e7e8eb;"><center><label for="R21_5"><img src="<?php echo PATH_IMG_BACKEND; ?>GMapTypeControl3dm.gif" alt="" title="<?php echo $BL['modules'][$content["module"]]['gmaps_type_3dm']; ?>" border="0" height="19" width="75"></label><br /><input type="checkbox" name="gmaps_type_3dm" value="1" id="R21_5" <?php if ($content['googlemaps']['gmaps_type_3dm']==1) echo 'checked="checked"'; ?> /></center> </td>
      </tr>
      <tr>
    <td colspan="4" style="font-size: 7pt;">
    <?php echo $BL['modules'][$content["module"]]['expl_maptype']; ?>
    </td>
      </tr>
    </table>
  </td>
</tr>
<tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="5" /></td></tr>
<tr><td></td><td class="rowspacer0x5"><img src="img/leer.gif" alt="" width="1" height="1" /></td></tr>
<!-- paronamio section -->
<tr>
  <td align="right" valign="top" class="chatlist">&nbsp;</td>
  <td>
    <table border="0" width="480" cellspacing="3" cellpadding="0">                
      <tr>
        <td style="background:#e7e8eb;" width="100" rowspan="3"><center><label for="R82_1"><img src="<?php echo PATH_IMG_BACKEND; ?>GMapPano.gif" alt="" title="<?php echo $BL['modules'][$content["module"]]['gmaps_control_pano']; ?>" border="0" height="29" width="75"></label><br /><input type="checkbox" name="gmaps_control_pano" value="1" id="R82_1" <?php if ($content['googlemaps']['gmaps_control_pano']==1) echo 'checked="checked"'; ?> /></center> </td>
        <td valign="top">
            <?php echo $BL['modules'][$content["module"]]['gmaps_control_panoAnz']; ?>&nbsp;</td>
        <td><input type="text" name="gmaps_control_pano_anz" class="f11b width50" value="<?php echo $content['googlemaps']['gmaps_control_pano_anz']; ?>" />&nbsp;(max. 100)</td>
      </tr><tr>  
        <td valign="top"><?php echo $BL['modules'][$content["module"]]['gmaps_control_panoUID']; ?>&nbsp;</td>
        <td><input type="text" name="gmaps_control_pano_uid" class="f11b width50" value="<?php echo $content['googlemaps']['gmaps_control_pano_uid']; ?>" /><span style="font-size: 7pt;">&nbsp;<?php echo $BL['modules'][$content["module"]]['gmaps_control_panoUID2']; ?></span></td>
      </tr><tr>
        <td colspan="2">
    <input type="radio" name="gmaps_control_pano_act" value="0" id="R82_4" <?php if ($content['googlemaps']['gmaps_control_pano_act']==0) echo"checked='checked'"; ?> /><label for="R82_4"><?php echo $BL['modules'][$content["module"]]['gmaps_control_pano_act0']; ?></label>&nbsp;&nbsp;
    <input type="radio" name="gmaps_control_pano_act" value="1" id="R82_5" <?php if ($content['googlemaps']['gmaps_control_pano_act']==1) echo"checked='checked'"; ?> /><label for="R82_5"><?php echo $BL['modules'][$content["module"]]['gmaps_control_pano_act1']; ?></label>
        </td>
      </tr>
    </table>
  </td>
</tr>
<!-- end paronamio section -->
<tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="5" /></td></tr>
<tr><td></td><td class="rowspacer0x5"><img src="img/leer.gif" alt="" width="1" height="1" /></td></tr>
<tr>
  <td align="right" valign="top" class="chatlist">&nbsp;</td>
  <td>
    <table border="0" width="400" cellspacing="3" cellpadding="0">                
      <tr>
    <td style="background:#e7e8eb;" width="100"><center><label for="R22_1"><img src="<?php echo PATH_IMG_BACKEND; ?>GMapBar.gif" alt="" title="<?php echo $BL['modules'][$content["module"]]['gmaps_control_bar']; ?>" border="0" height="29" width="75"></label><br /><input type="checkbox" name="gmaps_control_bar" value="1" id="R22_1" <?php if ($content['googlemaps']['gmaps_control_bar']==1) echo 'checked="checked"'; ?> /></center> </td>
    <td valign="top">
    <input type="checkbox" style="vertical-align:middle;" name="gmaps_bar_keepzoom" value="1" id="R22_2" <?php if ($content['googlemaps']['gmaps_bar_keepzoom']==1) echo"checked='checked'"; ?> /><label for="R22_2"><?php echo $BL['modules'][$content["module"]]['gmaps_bar_keepzoom']; ?></label><br />
    <input type="checkbox" style="vertical-align:middle;" name="gmaps_bar_showload" value="1" id="R22_3" <?php if ($content['googlemaps']['gmaps_bar_showload']==1) echo"checked='checked'"; ?> /><label for="R22_3"><?php echo $BL['modules'][$content["module"]]['gmaps_bar_showload']; ?></label><br />
    </td>
    <td valign="top">
    <?php echo $BL['modules'][$content["module"]]['gmaps_bar_resultlist']; ?><br />
    <input type="radio" name="gmaps_bar_resultlist" value="0" id="R22_4" <?php if ($content['googlemaps']['gmaps_bar_resultlist']==0) echo"checked='checked'"; ?> /><label for="R22_4"><?php echo $BL['modules'][$content["module"]]['gmaps_bar_resultlist0']; ?></label><br />
    <input type="radio" name="gmaps_bar_resultlist" value="1" id="R22_5" <?php if ($content['googlemaps']['gmaps_bar_resultlist']==1) echo"checked='checked'"; ?> /><label for="R22_5"><?php echo $BL['modules'][$content["module"]]['gmaps_bar_resultlist1']; ?></label><br />
    <!-- input type="radio" name="gmaps_bar_resultlist" value="2" id="R22_6" <?php if ($content['googlemaps']['gmaps_bar_resultlist']==2) echo"checked='checked'"; ?> /><label for="R22_6"><?php echo $BL['modules'][$content["module"]]['gmaps_bar_resultlist2']; ?></label -->
    </td>
      </tr>
    </table>
  </td>
</tr>
<tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="5" /></td></tr>
<tr><td></td><td class="rowspacer0x5"><img src="img/leer.gif" alt="" width="1" height="1" /></td></tr>
<tr>
  <td align="right" valign="top" class="chatlist">&nbsp;</td>
  <td>
    <table border="0" width="400" cellspacing="3" cellpadding="0">                
      <tr>
    <td style="background:#e7e8eb;" width="100"><center><label for="R32_2"><img src="<?php echo PATH_IMG_BACKEND; ?>GMapScale.gif" alt="" title="<?php echo $BL['modules'][$content["module"]]['gmaps_control_scale']; ?>" border="0" height="29" width="75"></label><br /><input type="checkbox" name="gmaps_control_scale" value="1" id="R32_2" <?php if ($content['googlemaps']['gmaps_control_scale']==1) echo 'checked="checked"'; ?> /></center> </td>
    <td>&nbsp;</td>
      </tr>
    </table>
  </td>
</tr>
<tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="5" /></td></tr>
<tr><td></td><td class="rowspacer0x5"><img src="img/leer.gif" alt="" width="1" height="1" /></td></tr>
<tr>
  <td align="right" valign="top" class="chatlist">&nbsp;</td>
  <td>
    <table border="0" width="400" cellspacing="3" cellpadding="0">                
      <tr>
    <td style="background:#e7e8eb;" width="100"><center><label for="R42_3"><img src="<?php echo PATH_IMG_BACKEND; ?>GMapOverview.gif" alt="" title="<?php echo $BL['modules'][$content["module"]]['gmaps_control_overview']; ?>" border="0" height="29" width="75"></label><br /><input type="checkbox" name="gmaps_control_overview" value="1" id="R42_3" <?php if ($content['googlemaps']['gmaps_control_overview']==1) echo 'checked="checked"'; ?> /></center> </td>
    <td>
      &nbsp;<?php echo $BL['modules'][$content["module"]]['width']; ?> <input type="text" name="gmaps_overview_width" class="f11b width50" value="<?php echo $content['googlemaps']['gmaps_overview_width']; ?>">px&nbsp;&nbsp;<?php echo $BL['modules'][$content["module"]]['height']; ?> <input type="text" name="gmaps_overview_height" class="f11b width50" value="<?php echo $content['googlemaps']['gmaps_overview_height']; ?>">px<br />
      &nbsp;<?php echo $BL['modules'][$content["module"]]['gmaps_overview_empty']; ?>
    </td>
      </tr>
    </table>
  </td>
</tr>
<!-- end controls field -->
<tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="5" /></td></tr>
<tr><td colspan="2" class="rowspacer0x7"><img src="img/leer.gif" alt="" width="1" height="1" /></td></tr>
<!-- kml -->
  <td align="right" valign="top" class="chatlist"><img src="<?php echo $phpwcms['modules'][$content["module"]]['dir']."img/kml.gif"?>" alt="" width="20" height="20" /><span style="padding:5px;"><?php echo $BL['modules'][$content["module"]]['gmaps_kml'] ?>:</span></td>
  <td>
      <input type="hidden" name="gmaps_contid" value="<?php echo $phpwcms['modules'][$content["module"]]['dir']."kml/googlemap_".$content['aid']."_".$content['id'].".kml"; ?>" />
      <input type="checkbox" style="vertical-align:middle;" name="gmaps_kml" value="1" id="R72_1" <?php if ($content['googlemaps']['gmaps_kml']==1) echo"checked='checked'"; ?> /><label for="R72_1"><?php echo $BL['modules'][$content["module"]]['gmaps_kml_txt']; ?></label>
      &nbsp;&nbsp;<?php echo $BL['modules'][$content["module"]]['gm_kml_name']; ?> <input type="text" name="gmaps_kml_descr" class="f11b width150" value="<?php echo $content['googlemaps']['gmaps_kml_descr']; ?>" maxlength="50" />
      <br /><?php 
  $folder = $phpwcms['modules'][$content["module"]]['dir']."kml/";
  $filename = "googlemap_".$content['aid']."_".$content['id'].".kml";

  if (file_exists($folder.$filename)) {
      echo '<a href="'.$folder.$filename.'" alt="kml">'.$folder.$filename.'</a>';
  }else{
      echo $folder.$filename;
  }?>
  </td>
</tr>  
<!-- end kml -->
<tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="5" /></td></tr>
<tr><td colspan="2" class="rowspacer0x7"><img src="img/leer.gif" alt="" width="1" height="1" /></td></tr>
<!-- additional API -->
<tr>
  <td align="right" valign="top" class="chatlist"><div style="padding:5px;"><?php echo $BL['modules'][$content["module"]]['script'] ?>:</div></td>
  <td>
  <div style="float:right;padding:2px;padding-right:50px;">
		<a href="#rtp_anchor2" onclick="contractField('gmaps_script', 'V')"><img src="img/button/minus_11x11.gif" border="0" alt="-" width="11" height="11"></a><a href="#rtp_anchor2" onclick="growField('gmaps_script', 'V')"><img src="img/button/add_11x11.gif" border="0" alt="+" width="11" height="11"></a>
		</div>
    <textarea rows="8" name="gmaps_script" cols="30" wrap='OFF' class='msgtext' id='gmaps_script' style='width:400px'><?php echo $content['googlemaps']['gmaps_script']; ?></textarea>
  </td>
</tr>
<tr>
  <td align="right" valign="top" class="chatlist"></td>
  <td>
  <div class="chatlist">the div element that holds this Map has id "mapDIV<?php echo $content['id']; ?>" <br />the map object for this instance is: map<?php echo $content['id']; ?> <br />use 'google.maps.*' instead of the normal 'G' prefix e.g. new google.maps.Map2</div>
  </td>
</tr>
<!-- end additional API -->
<tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="5" /></td></tr>
<tr><td colspan="2" class="rowspacer0x7"><img src="img/leer.gif" alt="" width="1" height="1" /></td></tr>
<!-- bottom spacer - is followed by status "visible" checkbox -->
